package cn.harry.common.utils;

/**
 * Redis所有Keys
 *
 * @author honghh Date 2019/07/18 14:03 Copyright (C) www.tech-harry.cn
 */
public class RedisKeys {

	/**
	 * desc 获取短信验证码
	 * @param key 手机号
	 * @param type 类型
	 * @return
	 * @author honghh date 2019-09-06 10:20
	 */
	public static String getMsgCodeKey(String key, String type) {
		return "msg:code:" + type + key;
	}

	/**
	 * 图形验证码
	 */
	public static String getCaptchaKey(String uuid) {
		return "captcha:" + uuid;
	}

	public static String getTokenByUsername(String username) {
		return "token:username:" + username;
	}

}
